export interface Product {
    id: number;
    name: string;
    description: string;
    price: number;
    image_url: string;
    stock: number;
    is_active: boolean;
}
export interface Order {
    orderId: number;
    customerId: number;
    totalPrice: number;  // Use number to represent BigDecimal in JavaScript
    orderStatus: boolean;  // Optional as it's nullable
    createdAt: string;  // ISO string representation of LocalDateTime
    updatedAt?: string;  // Optional as it's nullable
}






// types.ts
export interface SalesTrendDTO {
    saleTrend:  Map<number,Array<number>>;
    timePoints: string[];  // 或 Date[]，后面接 new Date(d) 即可
}

export interface AccumulatedSale {
    sale: Map<number,number>;
    totalSales: number;
    productDetail: Map<number,Product>;
}

export interface Customer {
    id: number;
    username: string;
    password: string;
    address: string;
    email: string;
}
export interface Seller {
    id: number;
    username: string;
    password: string;
    storeName: string;

}
export interface LoginLog {
    id: number
    userId: number
    loginTime: string | Date
    logoutTime: string | Date
    ipAddress: string
}

export interface LogFilters {
    userId: number | null
    dateStart: Date
    dateEnd: Date
}
